<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="content">
    <c:url value="/periode" var="periode_url"/>

    <form:form action="${periode_url}" method="PUT" modelAttribute="periode">
        <form:hidden path="id" id="id"/>
        <div class="blocksection">
            <div class="blockcontent">
                <h3>Masukkan Perubahan Data Periode</h3>
                <dl class="form-text">
                    <dt>
                        <label for="tahun">Tahun :</label>
                    </dt>
                    <dd>
                        <form:select path="tahun" id="tahun">
                            <%--<form:option label="--pilih--" value=""/>--%>
                            <c:forEach items="${tahunList}" var="tahun">
                                <form:option value="${tahun}" label="${tahun.tahun}"/>
                            </c:forEach>
                        </form:select>
                        <form:errors delimiter="&lt;p/&gt;" cssClass="boxinfo error"
                                     path="tahun"/>
                    </dd>
                    <dt>
                        <label for="triwulan">Triwulan :</label>
                    </dt>
                    <dd>
                        <form:select path="triwulan" id="triwulan">
                            <%--<form:option label="--pilih--" value=""/>--%>
                            <c:forEach items="${triwulanList}" var="triwulan">
                                <form:option value="${triwulan}" label="${triwulan.triwulan}"/>
                            </c:forEach>
                        </form:select>
                        <form:errors delimiter="&lt;p/&gt;" cssClass="boxinfo error"
                                     path="triwulan"/>
                    </dd>
                </dl>
            </div>
        </div>
        <div class="form-button">
            <div class="buttonWrapper">
                <a href="<c:url value='/periode'/>" class="back">Kembali</a>
            </div>
            <input type="submit" value="Simpan" name="submit_1" id="submit_1"/>
            <input class="grey" type="reset" value="Hapus" name="reset_1" id="reset_1"/>
        </div>
    </form:form>
</div>
